/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.yuecai.modules.yc_order.service.dto;

import com.yuecai.annotation.Query;
import lombok.Data;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
* @website https://el-admin.vip
* @author DM
* @date 2020-06-26
**/
@Data
public class YcOrderQueryCriteria{

    /** 精确 */
    @Query
    private String orderSn;

    /** 精确 */
    @Query
    private Long receiverId;

    /** 精确 */
    @Query
    private Long userId;

    /** 精确 */
    @Query
    private Integer orderStatus;

    /** 供应商 */
    @Query
    private Long supplierId;

    /** 供应商 */
    @Query
    private Long distributionId;

    /** 供应商 */
    @Query
    private Boolean isDistribution;

    /** BETWEEN */
    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;

    /**
     * 地址 模糊查询
     */
    private String address;

    /**
     *
     */
    @Query(propName = "userId", type = Query.Type.IN)
    private Set<Long> userIds;

    /**
     * 日期 精确查询
     * 1每日2每月
     */
    private Integer date;
}